import * as func from "./func.js"
export default {
  name: '',
  props: {
    options:{
      type: Array,
      default: []
    },
    visible: {
      type: Boolean,
      default: false
    },
    cursorPosition: {
      type: Object,
      default: () => ({})
    }
  },
  components:{},
  data(){
    return {
      x:'',
      y:'',
    }
  },
  methods:{
    ...func,
  },
  watch: {
    cursorPosition: {
      handler: function(newVal, oldVal) {
        this.x = newVal.x
        this.y = newVal.y
      },
      deep: true, // 监听深层对象
      immediate: true, // 立即执行 
    }
  },
  created(){
    
  },
  mounted(){
    
  },
}